import request from '@/utils/request'
// 获取初始表单数据
/**
 * 获取初始表单数据
 * @param {*} data
 */
export const getPointList = (params) => {
  return request({
    url: '/vm-service/region/search',
    method: 'GET',
    params
  })
}
/**
 * 新增接口
 * @param {*} data
 */
export const addPointList = (data) => {
  return request({
    url: '/vm-service/region',
    method: 'POST',
    data
  })
}
/**
 * 编辑的接口
 * @param {*} id
 */
export const editStreet = (id, data) => {
  return request({
    url: `/vm-service/region/${id}`,
    method: 'PUT',
    data

  })
}
/**
 * 查看的接口
 * @param {*} id
 */
export const lookStreet = (id) => {
  return request({
    url: `/vm-service/node/search/${id}`,
    method: 'GET'

  })
}
/**
 * 删除的接口
 * @param {*} id
 */
export const delStreet = (id) => {
  return request({
    url: `/vm-service/region/${id}`,
    method: 'DELETE'
  })
}
